<template>
  <div>
    测试页面没有任何功能
  </div>

  <el-button @click="logout">退出登录</el-button>
</template>

<script lang="ts" setup>
definePageMeta({
  requiresAuth: true,
  title: '测试页面'
})

const authToken = useCookie('X-Auth-Token')
const logout = () => {
  authToken.value = null
  navigateTo('/login', {
    replace: true,
  })
}
</script>

<style></style>